import { ReqGetGoodsList } from "@/api";

const state={
  goods:{}
}
const mutations={
    // 存商品数据的方法
    SAVE_GOODS_LIST(state,value){
        state.goods=value
    }
}
const actions={
   async getGoodsList({commit},params){
           let data=await  ReqGetGoodsList(params);
           commit("SAVE_GOODS_LIST",data)  
   }
}
const getters={

}
export default{
    namespaced:true,
    state,
    mutations,
    actions,
    getters
}